<h1><%= "#{t(:listing)} #{t(:card_providers)}" %></h1>

<table>
  <thead>
    <tr>
      <th>Label</th>
      <th><%= t :created_at %></th>
      <th><%= t :updated_at %></th>
      <th><%= t :created_by %></th>
      <th><%= t :updated_by  %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @card_providers.each do |card_provider| %>
      <tr>
        <td><%= card_provider.label %></td>
        <td><%= card_provider.created_at %></td>
        <td><%= card_provider.updated_at %></td>
        <td><%= card_provider.created_by %></td>
        <td><%= card_provider.updated_by %></td>
        <td><%= link_to "#{t(:show)}", card_provider %></td>
        <td><%= link_to "#{t(:edit)}", edit_card_provider_path(card_provider) %></td>
        <td><%= link_to "#{t(:destroy)}", card_provider, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_card_provider)}", new_card_provider_path %>
